package com.xxx.yuedong.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("tb_comment")
public class Comment implements Serializable {
    /**
     * 评论ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 动态ID
     */
    private Long dynamicId;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 回复评论的ID
     */
    private Long parentId;
    /**
     * 评论时间
     */
    private LocalDateTime createdTime;
}
